require File.dirname(__FILE__) + "/lib/nwd/controllers/ninja_web_debugger_controller.rb"
require File.dirname(__FILE__) + "/lib/nwd/controller_methods"
require File.dirname(__FILE__) + "/lib/rails_ext/ninja_abstract_adapter.rb"
require File.dirname(__FILE__) + "/lib/nwd/disable_colorized_logging.rb"

# make plugin controllers and views available to app
config.load_paths += %W(#{File.dirname(__FILE__)}/lib/nwd/controllers)
Rails::Initializer.run(:set_load_path, config)

NinjaWebDebuggerController.view_paths = [File.join(directory, 'views')]

# add methods to action controller base
ActionController::Base.send(:include, NWD::ControllerMethods)

# load in the helper
ActionController::Base.send(:helper, NWD::NinjaWebDebuggerHelper)
